<template>
  <div class="contactsAddEdit">
    <div class="mask"></div>
    <div class="form-box"> </div>
    <!-- <el-form
        ref="form"
        :model="formdata"
        :rules="rules"
        label-width="100px"
        :validate-on-rule-change="false"
      >
            <el-form-item :label="multLang('title_dg', ':')" prop="user_name">
              <el-input
                v-model="formdata.name"
                :placeholder="multLang('text_d')"
              ></el-input>
            </el-form-item>
            <el-form-item :label="multLang('电话')">
              <el-input
                v-model="formdata.phone"
                :placeholder="multLang('请输入电话')"
              ></el-input>
            </el-form-item>
            <el-form-item :label="multLang('邮箱')">
              <el-input
                v-model="formdata.email"
                :placeholder="multLang('请输入邮箱')"
              ></el-input>
            </el-form-item>
            <el-form-item :label="multLang('微信')">
              <el-input
                v-model="formdata.weChat"
                :placeholder="multLang('请输入微信')"
              ></el-input>
            </el-form-item>
      </el-form> -->

    <!-- <template #footer>
        <el-button @click="close">
          {{ multLang('btn_cancel_a') }}
        </el-button>
        <el-button type="primary" @click="submit">
          {{ multLang('btn_sure_a') }}
        </el-button>
      </template> -->
    <!-- </div>-->
  </div>
</template>

<script>
export default {
  name: 'addEdit',
  data() {
    return {
      formData: {
        name: '',
        phone: '',
        email: '',
        weChat: ''
      }
    }
  },
  created() {},
  components: {},
  computed: {
    rules() {
      return {
        user_name: {
          required: true,
          message: this.tplLang('msg_a', ['title_dg']),
          trigger: 'blur'
        }
      }
    }
  },
  mounted() {
    alert(111)
  },
  methods: {
    submit() {
      // formData
    },
    close() {
      this.$emit('close')
    }
  }
}
</script>
<style lang="scss" scoped>
.contactsAddEdit {
  .mask {
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    margin: 0;
    z-index: 2003;
    height: 100vh;
  }
  .form-box {
    height: 400px;
    width: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%);
    z-index: 9999;
    background-color: red;
  }
}
</style>
